<p>All Pets:</p>
<a href="<?php echo site_url('owners'); ?>/frompet/"> Add a Pet</a>
<table border="1px">

		<thead>
		<tr>
		<th><a href="<?php echo site_url('pets'); ?>/sort/bypet">Pet Name</a></th>
		<th><a href="<?php echo site_url('pets'); ?>/sort/byspecies">Species</a></th>
                <th><a href="<?php echo site_url('pets'); ?>/sort/bybreed">Breed</a></th>
		<th>First Name</th>
                <th>Last Name</th>
                <th>View</th>
								<th>Add Appointment</th>
		</tr>
		</thead>
 

<?php foreach ($pets as $array => $object): ?>
<tr>
<td><?php echo "$object->name"; ?></td>
<td><?php echo "$object->species"; ?></td>
<td><?php echo "$object->breed"; ?></td>
<td><?php echo "$object->fname"; ?></td>
<td><?php echo "$object->lname"; ?></td>
<td>
		<a href="<?php echo site_url('pets'); ?>/pets_detail/<?php echo "$object->pet_id"; ?>"<?php echo img('images/eye.jpg');?></a>
</td>
<td>
		<a href="<?php echo site_url('visits'); ?>/add/<?php echo "$object->pet_id"; ?>"<?php echo img('images/pencil.jpg');?></a>
</td>
</tr>


<?php endforeach; ?>
</table>
</div>

